
#extension GL_EXT_gpu_shader4: enable

uniform samplerBuffer posTextureBuffer;

void main ()
{
	vec4 pos = texelFetchBuffer(posTextureBuffer, gl_VertexID);
	
	pos =   vec4(pos.y,0,pos.x,1.0);
	gl_Position = gl_ModelViewProjectionMatrix * pos;
}